@import "../mixins.less";

.popup-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    overflow-y: scroll;
    &.transparent {
        background-color: rgba(0,0,0,0);
    }
    .popup {
        position: absolute;
        left: 0;
        width: 100%;
        padding: @popup-padding;
        // background-color: @white-color;
        box-sizing: border-box;

        &--pos-right {
            left: auto !important;
            right: 0;
            top: 0;
            bottom: 0;
            width: 277px;
        }
        &.no-padding {
            padding: 0;
        }
        &.narrow {
            left: 15%;
            width: 70%;
        }
        &.narrow-8 {
            left: 10%;
            width: 80%;
        }
        &.center {
            top: 50%;
            transform: translate(0, -50%);
            border-radius: 5px;
        }
        // toast样式
        &.toast {
            left: 50%;
            top: 50%;
            width: auto;
            padding: 0rpx;
            font-size: 28rpx;
            transform: translate(-50%, -50%);
            border-radius: 5px;
            .toast-content {
                width: 500rpx;
                padding: 60rpx 40rpx;
                box-sizing: border-box;
            }
            .toast-image {
                width: 100%;
            }
            .btn-wrap {
                
            }
        }
        &.bottom {
            bottom: 0;
            border-radius: 5px 5px 0 0;
        }
        &.dark {
            color: #fff;
            background-color: rgba(0,0,0,0.6);
        }
    }
}

.filter-popup {
    .popup {
        display: inline-block;
        width: 300px;
        // 这里为什么一定要用important？
        padding: 20px 15px !important;
        background-color: @color-white !important;
    }
    &__line {
        color: #bbb;
    }
    &__title {
        padding: 10px 0;
        .text-huge();
    }
    &__input-wrap {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    &__input {
        padding: 4px 0;
        .text-small();
        background-color: #F5F5F5;
        border-radius: 10px;
        text-align: center;
    }
    &__row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        text-align: center;
    }
    &__item-wrap {
        display: inline-block;
        width: 33.33%;
        &:nth-child(1) {
            text-align: left;
        }
        &:nth-child(2) {
            text-align: center;
        }
        &:nth-child(3) {
            text-align: right;
        }
    }
    &__item {
        display: inline-block;
        width: 70px;
        padding: 8px 4px;
        .text-small();
        background-color: #F5F5F5;
        border-radius: 10px;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        &--active {
            color: @color-white;
            background-color: @color-red;
        }
    }
    &__btn {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 30px;
        .btn {
            min-width: 96px;
            text-align: center;
            border-radius: 10px;
        }
    }
}
